package com.bootdo.wx.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.wx.dao.ConfigDao;
import com.bootdo.wx.domain.Config;
import com.bootdo.wx.service.ConfigService;



@Service
public class ConfigServiceImpl implements ConfigService {
	@Autowired
	private ConfigDao configDao;
	
	@Override
	public Config get(Integer id){
		return configDao.get(id);
	}
	
	@Override
	public List<Config> list(Map<String, Object> map){
		return configDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return configDao.count(map);
	}
	
	@Override
	public int save(Config config){
		return configDao.save(config);
	}
	
	@Override
	public int update(Config config){
		return configDao.update(config);
	}
	
	@Override
	public int remove(Integer id){
		return configDao.remove(id);
	}
	
	@Override
	public int batchRemove(Integer[] ids){
		return configDao.batchRemove(ids);
	}

	@Override
	public Config getByUserId(Long userId) {
		// TODO Auto-generated method stub
		return configDao.getByUserId(userId);
	}
	
}
